package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.generator.dto.DynamicDto;
import io.renren.modules.generator.entity.DynamicEntity;
import io.renren.modules.generator.vo.DynamicVo;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author jianzhen
 * @email sunlightcs@gmail.com
 * @date 2022-05-04 15:12:38
 */
public interface DynamicService extends IService<DynamicEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDynamic(DynamicDto dynamic);

    List<DynamicVo> getMyDynamic();

    List<DynamicVo> getAllInfo();

    void removeDynamic(Integer dynamicId);

    void cancelLike(Integer dynamicId);

    void like(Integer dynamicId);
}

